import 'package:route/route.dart';
import 'package:flutter/material.dart';

import '../pages.dart';

class SourceCodePage extends StatelessWidget {
  const SourceCodePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("source code test"),
      ),
      body: ListView(
        children: [
          ListTile(
            leading: const Icon(Icons.title),
            title: const Text("InheritedWidget test"),
            onTap: () => router.openFlutterPage(FlutterPages.testInheritedWidget),
          ),
          ListTile(
            leading: const Icon(Icons.title),
            title: const Text("InheritedWidget State builder test"),
            onTap: () => router.openFlutterPage(FlutterPages.testInheritedWidgetState),
          ),
        ],
      ),
    );
  }
}
